﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Extensil.Common.CategoryHandler.Discovery
{
    public class ProbeParam :ConfigurationElement
    {
        [ConfigurationProperty("name", IsRequired = true)]
        public string Name
        {
            get
            {
                return base["name"] as string;
            }
            set
            {
                base["name"] = value;
            }
        }
        [ConfigurationProperty("value", IsRequired = true)]
        public string Value
        {
            get
            {
                return base["value"] as string;
            }
            set
            {
                base["value"] = value;
            }
        }
        public bool Required
        {
            get;
            set;
        }
        public override bool IsReadOnly()
        {
            return false;
        }

        public ProbeParam()
        {
        }
        public ProbeParam(string name)
        {
            Name = name;
        }
        public ProbeParam(string name, string value)
        {
            Name = name;
            Value = value;
        }
    }
}
